package com.webkaifa.socket;


public class SocketException extends Exception
{ 
  /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
/**
   * Default Constructor.
   */
  private int code;
  private String addInfo;
  public SocketException(int code, String addInfo)
  {
     super (addInfo);
     this.code = code;
	 this.addInfo = addInfo;
  }
  public SocketException(int code)
  {
     this.code = code;
     addInfo="";
  }
  public int getCode()
  {
	  return code;
  }
  public String getAddInfo()
  {
	  return addInfo;
  }

  /**
   * Constructor.
   *@param timeout The timeout value which expired.
   *@param desc Textual description of the exception
   */
}
